#include<iostream>
#include <cstring>
#include <string>
std::string getAdditionOFLargeNumbers(std::string num1, std::string num2)
{
	int length1 = num1.size();//确定大数位数
	int length2 = num2.size();
	if (length1 < length2)//把num1固定为位数较大的那个数，方便后面处理
	{
		std::string temp = num1;
		num1 = num2;
		num2 = temp;
	}
	int  flag = 0, a, b, sum;
	while (length1 > 0)
		{
			a = num1[length1 - 1] - '0';
			if (length2 > 0)
			{
				b = num2[length2 - 1] - '0';
			}
			else
			{
				b = 0;
			}//从末位数开始相加
			sum = a + b + flag;
		if (sum >=10)
				{
				flag = 1;
				num1[length1-1] = '0' + sum % 10;
			}
			else
			{
				flag = 0;
				num1[length1 - 1] = '0' + sum;
			}
			length1--;
			length2--;
		}
		if (1 == flag)
			num1 = num1+"1";        //最后的进位
		return num1;
}
int main(int argc, char** argv)
{		
	std::string num1;
	std::string num2;
	while (std::cin >> num1 >> num2) {
		std::cout << "大数1为：" << num1 << std::endl;
		std::cout << "大数2为：" << num2 << std::endl;
		std::cout << "大数之和为："  << getAdditionOFLargeNumbers(num1, num2) << std::endl;
	}
}